<section class="content" style="padding: 10px">
    <form role="form" class="epii" method="post" data-form="1" action="" >
        <?php foreach($list as $treatments){ ?>
            <div class="row">
                <div class="col-12">
                    <div class="card card-default">
                        <div class="card-header">
                            <h3 class="card-title">{$treatments['cate_name']}</h3>
                        </div>
                        <div class="card-body">

                            <?php foreach($treatments['list'] as $k=>$treatment){ ?>
                                    <?php if($k%2!=0){ continue; }?>

                                <div class="row">

                                    <div class="col-6">
<!--                                        <div class="form-group">-->
                                            <label>{$treatment['name']}：</label>
                                            <input type="hidden" name="id[]" value="{$treatment['id']}" />
                                            <input type="number" class="form-control" name="money[]" value="{$treatment['performance']}" placeholder="提成金额">
<!--                                        </div>-->
                                    </div>
                                    <?php if(isset($treatments['list'][$k+1])){ ?>
                                        <div class="col-6">
<!--                                            <div class="form-group">-->
                                                <label>{$treatments['list'][$k+1]['name']}：</label>
                                                <input type="hidden" name="id[]" value="{$treatments['list'][$k+1]['id']}" />
                                                <input type="number" class="form-control" name="money[]" value="{$treatments['list'][$k+1]['performance']}" placeholder="提成金额">
<!--                                            </div>-->
                                        </div>
                                    <?php } ?>

                                </div>
                            <?php } ?>


                        </div>
                    </div>
                </div>
            </div>
        <?php } ?>

        <input name="admin_id" type="hidden" value="{$admin_id}" />
        <div class="form-footer" style="margin-left: 10px">
            <button type="submit" class="btn btn-primary">提交</button>
        </div>

    </form>
</section>